package com.free.food.core.enums;

import lombok.Getter;

/**
 * 类功能描述：
 *
 * @author：刘富国
 * @createTime：2019/2/14 13:41
 */
@Getter
public enum ResultEnum {
    /**
     * 通用
     */
    PARAM_ERROR(1001, "入参错误"),
    /**
     * order
     */
    CART_ISNULL(2001, "购物车为空"),

    /**
     * product
     */
    PRODUCT_NOT_EXIST(3001, "商品不存在"),
    PRODUCT_NUM_ERROR(3002, "商品数量有误"),
    ;

    private Integer code;
    private String msg;


    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
